package com.msmall.community.user.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.msmall.base.model.BaseObject;

@Entity
@Table(name="base_login_info")
public class LoginInfo extends BaseObject{

	private static final long serialVersionUID = 8317819357815589435L;

	@Id
	@Column(name="login_id",insertable=false,updatable=false)
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long loginId;
	
	@Column(name="user_id")
	private Long userid;
	
	@Column(name="login_type")
	private Short loginType;

	@Column(name="login_ua")
	private String loginUa;

	@Column(name="login_ip")
	private String loginIp;

	@Column(name="login_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date loginTime;

	@Column(name="logout_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date logoutTime;

	public LoginInfo() {
		super();
	}

	public Long getLoginId() {
		return loginId;
	}

	public void setLoginId(Long loginId) {
		this.loginId = loginId;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public String getLoginUa() {
		return this.loginUa;
	}

	public void setLoginUa(String loginUa) {
		this.loginUa = loginUa;
	}

	public String getLoginIp() {
		return this.loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public Date getLoginTime() {
		return this.loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Date getLogoutTime() {
		return this.logoutTime;
	}

	public void setLogoutTime(Date logoutTime) {
		this.logoutTime = logoutTime;
	}

	public Short getLoginType() {
		return loginType;
	}

	public void setLoginType(Short loginType) {
		this.loginType = loginType;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}
}
